
<div id="isi">
    <div class="atas"></div>
    <div class="tengah">
        <div id="isidalam">
            <div class="putihatasCopy"></div>
            <div class="putihtengahCopy">
                <div class="headingform din">
                    <?php
                        if (isset($tipe)) {
                            if ($tipe == 1) {
                                echo "Berita";
                            } else if ($tipe == 2) {
                                echo "Cerita";
                            } else if ($tipe == 3) {
                                echo "Tutorial";
                            }
                        }
                    ?>
                </div>
            </div>
            <div class="putihbawahCopy"></div>
            <div class="putihtengahform">
                <div id="kabar">
                    <?php
                        $obj_date = date_create_from_format('Y-m-d', $news['TGL']);
                    ?>
                    <div id="tanggal"><?php if (isset($news)) echo date_format($obj_date, 'l, j F Y') ?></div>
                    <h1><?php if (isset($news)) echo $news['JUDUL'] ?></h1>
                    <?php if (!empty($news['GAMBAR'])) { ?>
                        <img  src="<?php if (isset($news)) echo $news['GAMBAR'] ?>"/>
                    <?php } ?>
                    <?php if (isset($news)) echo $news['ISI'] ?>
                    <div class="clear"></div>
                </div>
            </div>				<div class="putihprofil_ATAS"></div>
            <div class="putihprofil_TENGAH">
                <div id="bacajuga">
                    <p><b>Baca Juga:</b></p>
                    <div class="bacadong"> 
                        <?php
                        if (isset($other_berita)) {
                            echo '
							<span class="bacadong2 din">Other News</span>
                                                            <ul>';
                            for ($i = 0; $i < count($other_berita); $i++) {
                                echo '<li><a href="' . base_url() . 'itcourse/itcourse_con/news/' . $other_berita[$i]['ID_BERITA'] . '/1">' . $other_berita[$i]['JUDUL'] . '</a></li>
                                                                ';
                            }
                            echo '</ul>';
                        }
                        ?>
                    </div>
                    <div class="bacadongkanan">
                        <?php
                        if (isset($other_cerita)) {
                            echo '
							<span class="bacadong2 din">Other Story</span>
                                                            <ul>';
                            for ($i = 0; $i < count($other_cerita); $i++) {
                                echo '<li><a href="' . base_url() . 'itcourse/itcourse_con/news/' . $other_cerita[$i]['ID_BERITA'] . '/2">' . $other_cerita[$i]['JUDUL'] . '</a></li>
                                                                ';
                            }
                            echo '</ul>';
                        }
                        ?>
                    </div>
                    <div class="clear"></div>

                </div>
            </div>
            <div class="putihprofil_BAWAH"></div>
        </div>
    </div>
</div><!---end #isi--->